/* Basic reset for margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Cera Pro';
    src: local('Cera Pro Regular'), local('Cera-Pro-Regular'),
        url('./Files/Fonts/Cera-Pro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cera Pro';
    src: local('Cera Pro bold'), local('Cera-Pro-bold'),
        url('./Files/Fonts/Cera-Pro-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Ahkio';
    src: local('Ahkio-Black'), 
        url('./Files/Fonts/Melvastype-Ahkio-Black.otf') format('opentype'),
        url('./Files/Fonts/Melvastype-Ahkio-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

body {
    font-family: 'Cera Pro', Arial, sans-serif;
    position: relative;
    background-color: #fff;
    background-image: url('./JAV_Pfeil_1.svg');
    background-repeat: no-repeat;
    background-position: center -16vh;
    background-size: 750%;
    font-weight: 400;
}

.logo-container {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.quiz-logo {
    max-width: 18%;
    min-width: 180px;
    height: auto;
}

.start-page {
    text-align: center;
    margin-top: 30px;
    opacity: 1; /* Start fully visible */
    transition: opacity 0.5s ease-in-out; /* Smooth transition for opacity */
}

#start-button, #start-yourself-link {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

#start-yourself-link {
    transform: rotate(-5deg) skew(-5deg);
    display: block;
    margin: 50px 0;
}

.start-page, .quiz-container, .result-container, .giveaway-container, .interlude-container {
    padding: 7vh 20px;
    border-radius: 8px;
}

.quiz-container {
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.interlude-container {
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.question-container {
    margin-bottom: 20px;
    display: none;
}

h1, h3, .question {
    font-family: 'Ahkio', sans-serif;
    font-weight: 900;
}

h1, .question {
    font-size: 2.2em; /* Adjust size as needed */
    /* Slant the text */
    letter-spacing: 0.02em;
    transform: rotate(-5deg) skew(-5deg); /* Adjust the angle as needed */
    display: block; /* or 'block', depending on layout needs */
    margin-bottom: 20px; /* Adjust as needed */
}

.start-page h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.6em; /* Adjust size as needed */
    /* Slant the text */
    letter-spacing: 0.01em;
    display: block; /* or 'block', depending on layout needs */
    margin-bottom: 15px; /* Adjust as needed */  
}

strong {
    font-family: 'Cera Pro';
    font-weight: 600;
}

.btn, .answer {
    font-family: inherit;
    font-weight: 600;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, scale 0.3s ease;
    scale: 1;
}

.btn:hover, .answer:hover, .share-btn:hover img {
    scale: .9;
}

.answer, #start-button {
    width: 100%;
    display: block;
    transform: rotate(-5deg) skew(-5deg);
}

.answer img {
    position: absolute;
    z-index: 2;
    left: 28px;
    top: 50%;
    width: 64px;
    height: 84px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    margin: 0;
    border: 3px solid #fff;
    transform: translateY(-50%) rotate(-2deg);
}

.answer { position: relative; overflow: visible; min-height: 0; padding-left: 104px; }

.answer:nth-of-type(odd) { padding-right: 104px; padding-left: 1rem; }
.answer:nth-of-type(odd) img { left: auto; right: 28px; transform: translateY(-50%) rotate(2deg); }

#start-button {
    width: auto;
}

.result-container {
    display: none;
    padding: 5vh 20px 0 20px;
    background-color: transparent;
    color: rgb(0, 0, 0);
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

#result-page {
    display:block;
}

#result {
    font-family: 'Ahkio', sans-serif;
    font-weight: 900;
    font-size: 2.4em; /* Adjust size as needed */
    /* Slant the text */
    letter-spacing: 0.02em;
    margin-bottom: .5em;
}

#result-description {
    text-align: left;
}

#result-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 40px auto 0;
    border: 7px solid white;
    border-radius: 6px;
}

.giveaway-container {
    display: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.giveaway-container.visible {
    opacity: 1;
    display: block;
}

.giveaway-heading {
    font-family: 'Ahkio', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.giveaway-container h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.giveaway-container p {
    margin: 0 auto 12px;
    max-width: 620px;
    line-height: 1.35;
}

.giveaway-form {
    max-width: 480px;
    margin: 24px auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.giveaway-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.giveaway-form input[type="text"],
.giveaway-form input[type="email"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 3px solid #000;
    border-radius: 6px;
    background: #fff;
    color: #000;
}

.giveaway-form .giveaway-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    color: #000;
    line-height: 1.3;
}

.giveaway-form .giveaway-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: 0;
    margin-top: 2px;
    border: 3px solid #000;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transform: rotate(-5deg) skew(-5deg);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.giveaway-form .giveaway-check input[type="checkbox"]:hover {
    transform: rotate(-5deg) skew(-5deg) scale(1.05);
}

.giveaway-form .giveaway-check input[type="checkbox"]:checked {
    background: #FFCC00;
    border-color: #000;
}

.giveaway-form .giveaway-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 8px;
    height: 15px;
    border: solid #000;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.giveaway-form .giveaway-check input[type="checkbox"]:focus-visible {
    outline: 3px solid #F45C63;
    outline-offset: 2px;
}

#giveaway-submit {
    width: 100%;
    transform: rotate(-5deg) skew(-5deg);
    padding: 16px;
    font-size: 18px;
    font-family: 'Ahkio', sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: #000;
    color: #fff;
    border-radius: 6px;
    border: 3px solid #000;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#giveaway-submit:hover {
    background: #FFCC00;
    color: #000;
    transform: rotate(-5deg) skew(-5deg) scale(1.02);
}

.restart-btn {
    display: inline-block !important;
    margin-top: 36px;
    padding: 14px 40px;
    font-family: 'Ahkio', sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    transform: rotate(-5deg) skew(-5deg);
    background: #000;
    color: #fff;
    border: 3px solid #000;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.restart-btn:hover {
    background: #FFCC00;
    color: #000;
    transform: rotate(-5deg) skew(-5deg) scale(1.02);
}

.sound-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: 3px solid #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sound-toggle:hover {
    transform: scale(1.08);
}

.sound-icon {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.sound-toggle .sound-icon-off { display: none; }

.sound-toggle.muted {
    background: #fff;
    color: #000;
}

.sound-toggle.muted .sound-icon-on { display: none; }
.sound-toggle.muted .sound-icon-off { display: block; }

.giveaway-status {
    min-height: 1.5em;
    font-weight: 700;
    color: #b72f4b;
    margin-top: 10px;
}

.giveaway-imprint {
    font-size: 13px;
    color: #555;
    margin-top: 28px;
}

.interlude-container {
    display: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.interlude-container.visible {
    opacity: 1;
    display: block;
}

.interlude-headline {
    font-family: 'Ahkio', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.15;
    margin-bottom: 24px;
}

.interlude-text {
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.45;
    font-size: 17px;
}

#interlude-continue {
    transform: rotate(-5deg) skew(-5deg);
    padding: 16px 40px;
    font-size: 18px;
    font-family: 'Ahkio', sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: #000;
    color: #fff;
    border-radius: 6px;
    border: 3px solid #000;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#interlude-continue:hover {
    background: #FFCC00;
    color: #000;
    transform: rotate(-5deg) skew(-5deg) scale(1.02);
}

.results-actions {
    background: #F45C63;
    margin: 0 -20px;
    padding-bottom: 60px;
}

.btn {
    padding: 8px 20px 4px 20px;
    background: #000;
    color: white;
    border-radius: 6px;
    display: inline-block!important;
    text-align: center;
}

.download-btn img {
    height: 25px;
}

.download-btn span {
    vertical-align: super;
    margin-left: .2em;
}


/*
.download-btn::before {
    content: "";
    background: url(/Files/download_btn_white.svg) no-repeat 50%;
    display: inline-block!important;
    height: 40px;
    width: 40px;
}
*/
.share-buttons {
    margin-top: 20px;
    text-align: center;
}

.share-btn {
    display: inline-block;
    padding: 0 5px 3px 5px;
    margin: 5px;
    font-family: 'Cera Pro';
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    scale: 1;
}

.share-btn img {
    height: 21vw;
    max-height: 110px;
    padding: 21px;
    background: white;
    border-radius: 23px;
    display: block;
    margin-bottom: 10px;
    transition: scale 0.3s ease;
}

/*
#share-whatsapp::before {
    content: "";
    background: url(/Files/Share/Digital_Inline_Green.svg) no-repeat;
    display: inline-block;
    background-size: 15px;
    height: 15px;
    width: 30px;
}

#share-signal::before {
    content: "";
    background: url(/Files/Share/Signal-Lockup-Ultramarine.svg) no-repeat;
    display: inline-block;
    background-size: 15px;
    height: 15px;
    width: 30px;
}

#share-telegram::before {
    content: "";
    background: url(/Files/Share/TelegramLogo.svg) no-repeat;
    display: inline-block;
    background-size: 15px;
    height: 15px;
    width: 30px;
}

.whatsapp { background-color: #25D366; }
.signal { background-color: #3A76F0; }
.telegram { background-color: #0088cc; }
*/

/*.telegram { color: #0088cc; }*/
.telegram span {
}

#download-link {
    margin-top: 20px;
}

#links-container {
    margin-top: 30px;
}

.javportal-link {
    font-family: 'Cera Pro';
    font-weight: 600;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.javportal-link img {
    width: 130px;
    height: 130px;
    background: white;
    border-radius: 25px;
    padding: 14px 8px 2px 8px;
}

.javportal-link span {
    left: -15px;
    bottom: 109px;
    position: relative;
    font-family: 'Ahkio';
    font-weight: 900;
    font-size: 2.8em;
    transform: rotate(-12deg) skew(-5deg);
    display: block;
    line-height: .8em;
}

.javportal-link span.portal {
    font-size: 1.1em;
    color: white;
    left: -7px;
    letter-spacing: .02em;
}

.javportal-link .link {
    color: black;
    bottom: 50px;
    position: relative;
}
#download-link {
}

ul {
    list-style: none;
}

li {
    margin-bottom: 10px;
}

a {
    font-family: 'Cera Pro';
    font-weight: 600;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
}

.hidden {
    opacity: 0;
    display: none!important;
}

.question-container {
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.visible {
    opacity: 1;
    display: block;
}

.quiz-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #000000; /* Footer background color */
    color: white; /* Footer text color */
    text-align: center;
    padding: 10px 0; /* Adjust padding as needed */
}

.impressum-container {
    padding: 20px 0;
    margin-top: 40px;
    /*background: #8EAFBB;*/
}

.impressum-content {
    max-width: 760px;
    padding: 20px 20px;
    margin: 0 auto;
    background: #F45C63;
}

.impressum-container h1 {
    margin-bottom: 80px;
}

.impressum-content p {
    margin-bottom: 30px;
}

.footer-link {
    color: white; /* Adjust link color as needed */
    margin: 0 15px; /* Adjust spacing between links as needed */
    text-decoration: none;
    font-size: 16px; /* Adjust font size as needed */
}

.footer-link:hover {
    text-decoration: underline; /* Optional: hover effect */
}

/* Responsive adjustments for tablets and desktops */
@media (min-width: 768px) {
    body {
        background-position-y: -50vw;
    }

    .start-page, .quiz-container, .result-container, .giveaway-container, .interlude-container {
        width: 70%;
        margin: auto;
    }

    .answer {
        display: block;
        margin: 0 10px 10px 0;
        min-height: 0;
    }

    .answer img { left: 34px; width: 74px; height: 98px; }
    .answer:nth-of-type(odd) img { left: auto; right: 34px; }

    .question {
        font-size: 2.2em;
    }

    .impressum-content {
        background: none;
    }
}

@media (min-width: 1024px) {
    body {
        background-position-y: -57vw;
    }

    .start-page, .quiz-container, .result-container, .giveaway-container, .interlude-container {
        width: 50%;
    }

    .answer {
    }
}

/* IGBCE answer treatment. */
.answer {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 0;
    padding: 10px 20px;
}

.answer img { display: none; }

.answer:nth-of-type(odd) {
    padding: 10px 20px;
}

.answer span {
    width: 100%;
    text-align: center;
}

.question {
    width: min(100%, 900px);
    margin: 0 auto 28px;
    text-align: center;
    line-height: 1.08;
    transform-origin: center center;
    font-size: clamp(2rem, 6.5vw, 3rem);
}

.start-subline {
    font-weight: 600;
    margin: 0 auto 18px;
}

.start-intro {
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.35;
}

.start-decoration {
    position: fixed;
    z-index: 0;
    left: 50%;
    bottom: 0;
    width: min(360px, 48vw);
    height: min(330px, 38vh);
    transform: translateX(-50%);
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

.start-decoration img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.start-page {
    position: relative;
    z-index: 1;
}

#start-button {
    position: relative;
    z-index: 2;
}

.quiz-footer {
    z-index: 10;
}
